/**
 * Created by jack on 2017/12/14.
 */

'use strict';

goog.provide('Blockly.JavaScript.texts');

goog.require('Blockly.JavaScript');


Blockly.JavaScript.text = function() {
  // Text value.
  var code = Blockly.JavaScript.quote_(this.getFieldValue('TEXT'));
  return [code, Blockly.JavaScript.ORDER_ATOMIC];
};


Blockly.JavaScript.show_text = function() {
  // Text value.
  var value_text_value = Blockly.JavaScript.valueToCode(this, 'text_values', Blockly.JavaScript.ORDER_ATOMIC);
  var code = value_text_value;
  return [code, Blockly.JavaScript.ORDER_ATOMIC];
};
